const webpack = require('webpack')
module.exports = {
    baseUrl: './',
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
        proxy: {
            '/api':{
                target: "http://localhost:8080/",
                changeOrigin:true,

                ws: true,
                pathRewrite:{
                    '^/api':''
                }
            }
        },
            port: 8081,   // 端口号
    },
   configureWebpack: {
       plugins: [
           new webpack.ProvidePlugin({
               $:"jquery",
               jQuery:"jquery",
               "windows.jQuery":"jquery"
           })

       ]
   }
}

